<template>
	<view>
		<OrderUnity :showall=true :isedit=false ref="orderUnity">

		</OrderUnity>
	</view>
</template>

<script>
import Api from '../../api/api'
import OrderUnity from '../../components/orderunity.vue'
export default {
	components: {
		OrderUnity,
	},
	data() {
		return {
		}
	},
	methods: {
		onLoad(e) {
			console.log(e._id)
			Api.getWorkOrders({ search: { _id: e._id } }).then(response => {
				console.log(response.data)
				if (response.status == 200) {
					if (response.data.data[0].member_list)
						this.member_list = response.data.data[0].member_list
					this.$refs.orderUnity.setFormData(response.data.data[0]);
				}
			})
		},
	}
}
</script>

<style></style>
